package com.xcw.mapstruct;

import com.xcw.base.dto.UserDto;
import com.xcw.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

/**
 * @Author bhx
 * @Date 2022/8/28 23:25
 * @Description TODO
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserMapper {

    UserDto toDto(User user);
}
